package haizhi.fruitmall.enumeration;

import lombok.Getter;

/**
 * @Date: 2017/12/24 21:31
 * @Author: Richard Zane
 */

@Getter
public enum GoodsOrderByEnum implements BaseEnum{

    DEFAULT(0,"默认综合"),
    PRICE_LOW(1,"价格升序"),
    PRICE_HIGH(2,"价格降序"),
    COMMENT_TIMES(3,"评论次数"),
    CREATE_TIME(4,"上架时间"),
    TOTAL_SALES(5,"总共销量");


    private final Integer code;

    private String hint;

    GoodsOrderByEnum(Integer code, String hint) {
        this.code = code;
        this.hint = hint;
    }
}
